﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace GameEngine.Worlds
{
    public class World : ITick
    {
        // Units
        private List<Unit> units = new List<Unit>();

        public List<Unit> Units
        {
            get
            {
                return units;
            }
        }

        #region ITick Members

        public void Tick(float seconds)
        {
            // Let all objects tick.
            foreach (Unit unit in units)
            {
                unit.Tick(seconds);
            }
        }

        #endregion
    }
}
